
import ajax from '@/router/request'

export const captcha = (temp) => ajax('/api/captcha', temp, 'GET')
export const sendRegisterCode = (temp) => ajax('/api/student/sendRegisterCode', temp, 'POST')
export const registerQuery = (temp) => ajax('/api/student/registerQuery', temp)
export const registerStudent = (temp) => ajax('/api/student/registerStudent', temp, 'POST')
export const addBaseInfoStudent = (temp) => ajax('/api/student/addBaseInfo', temp, 'POST')
export const dictList = (temp) => ajax('/api/dict/studnet_bank', temp, 'GET')
export const checkStatus = (temp) => ajax('/api/student/studentRegisterStatus', temp, 'GET')
export const studentLogin = (temp) => ajax('/api/login/student', temp, 'POST', true)
export const studentInfo = (temp) => ajax('/api/login/student', temp, 'GET')
export const selectList = (temp) => ajax('/api/trainingBase/selectList', temp, 'GET')
export const selectCity = (temp) => ajax('/api/regionList', temp, 'GET')

export const selectProvince = (temp) => ajax(`/api/trainingBase/provinceUnit/${temp}`, {}, 'GET')
export const getUnreadNum = (temp) => ajax(`/api/messageRecord/getUnreadNum`, temp, 'GET')
export const getLoginHint = (temp) => ajax(`/api/studentLoginHint/list`, temp, 'GET')



// 专家
export const expertLogin = (temp) => ajax('/api/login/expert', temp, 'POST', true)
export const expertInfo = (temp) => ajax('/api/login/expert', temp, 'GET', true)

